<template>
	<view class="content">
		<u-notice-bar text="人生如戏,白驹过隙" speed="200"></u-notice-bar>
		<uni-card v-for="item in list" 
		:title="item.name" 
		:extra="item.birthday" 
		:is-shadow="true" 
		style="text-align: left;"
		>
		这家伙还有{{item.day}}天就过生日了，赶紧去看望看望。
		</uni-card>
	
	</view>
</template>

<script>
export default {
	data() {
		return {
			title: 'Hello',
			list:{},
		};
	},
	onLoad() {this.getDate()},
	methods: {
		getDate(){
			uni.request({
				url:'https://app.kiliter.cn/birthday',
				success: (request) => {
					let res=request.data.data;
					this.list=res;
					this.list=[...this.list,...res]
				}
			})
		},
		
	},created() {
		let that=this;
		uni.getStorage({
		    key: 'user',
		    success: function ({data}) {
		        if(data!=null){
				}
		    }
		});
	}
};
</script>

<style>
.content {
	text-align: center;
	height: 400upx;
}
</style>
